package me.sauce.folkpocket48.data

import android.arch.persistence.room.Room
import android.content.Context
import me.sauce.folkpocket48.data.local.database.AppDataBase

/**
 * @author sauceWu .
 * @since 2017/12/21 17:11
 */
class DataResponse {
    fun init(context: Context) {
        data = Room.databaseBuilder(context, AppDataBase::class.java, "48").build()

    }

    companion object {
        lateinit var data: AppDataBase
        fun get(): DataResponse {
            return Inner.Instance
        }
    }

    private object Inner {
        var Instance = DataResponse()
    }
}
